package com.gjs.cd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gjs.cd.pojo.dto.TotalReq;
import com.gjs.cd.pojo.entity.CdCodeGenerateBatch;
import com.gjs.cd.pojo.vo.BatchVo;
import com.gjs.common.pojo.dto.request.PageQuery;

import java.util.List;

/**
 * @author zhongwenguang
 * @date 2022-3-16 11:52
 */
public interface ICdCodeGenerateBatchService extends IService<CdCodeGenerateBatch> {
    List<TotalReq> getTotalByIds(List<Long> cdIds);
    IPage<BatchVo> getBatchList(PageQuery pageQuery, Long cdId, Long cdCodeValidTermId);
    //新增批次
    Boolean addBatch(CdCodeGenerateBatch cdCodeGenerateBatch);

}
